package cn.wokoba.service.activity.service.state.handler;

import cn.wokoba.service.activity.model.ActivityStateVO;
import cn.wokoba.service.activity.repository.ActivityRepository;
import cn.wokoba.service.activity.service.state.IActivityState;
import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;

public abstract class AbstractActivityState implements IActivityState {
    @Autowired
    protected ActivityRepository activityRepository;
    @PostConstruct
    protected void init() {
        ActivityStateHandler.register(getTypeEnum(), this);
    }

   protected abstract Enum<ActivityStateVO> getTypeEnum();
}
